package dao.orcDao;

import domain.ImgInfo;
import org.apache.commons.dbutils.QueryRunner;
import util.DataSourceUtils;

import java.sql.SQLException;

/**
 * Created by wrh on 17-9-30.
 */
public class ImgDao {

    public void insertInto(ImgInfo imageInfo) throws SQLException {

        QueryRunner qr = new QueryRunner(DataSourceUtils.getDataSource());
        String sql = "insert into ImgageMsg values(null,?,?);";
        qr.update(sql, imageInfo.getImgpath(),imageInfo.getImageInfo());

    }
}
